<%@ page import="com.qiku.pojo.User" %><%--
  Created by IntelliJ IDEA.
  User: nnxy
  Date: 2022/6/11
  Time: 9:55
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>系统管理</title>
</head>
<body>
    <%
        User user = (User)request.getSession().getAttribute("user");
        String userName = user.getUsername();
        int isRoot = user.getIs_root();
        if(isRoot!=1){
            request.setAttribute("adminMag","你不是系统管理员！");
            request.getRequestDispatcher("systemTest.jsp").forward(request, response);
        }else {
            request.setAttribute("adminMag","欢迎管理员"+userName+"登录！");
        }
    %>
<h2>
    ${empty adminMag ? "" : adminMag}
</h2>
</body>
</html>
